06. Square Matrix Multiplication Quiz

Square Matrix Multiplication Quiz

let AA and BB be two square matrcies of 33 x 33.

A=[312541038]A=\begin{bmatrix} 3 &1 &2\\ -5 &4 &1\\0&3&-8\end{bmatrix}

B=[051321100.54]B=\begin{bmatrix} 0 &5&-1\\ 3 &2 &-1\\10&0.5&4\end{bmatrix}

(a) What is the value of element c23c_{23} of Matrix CC where C=AC=A x BB

(b) What is the value of element c23c_{23} of Matrix CC where C=BC=B x AA

Code

If you need a code on the https://github.com/udacity.

Notice that AA x BB\neqBB x AA, as element c23c_{23} in
AA x BB is not the same as element c23c_{23} in
BB x AA.

Since AA x BB\neqBB x AA we say they there are not commutative. This is a very interesting observation, as multiplication of scalars is definitely commutative.